<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout :: head(~{ :: title}, ~{ :: link}, ~{ ::script},~{::style})">
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>商户管理平台-角色添加</title>
    <link rel="stylesheet" th:href="@{/plugins/jquery-confirm/jquery-confirm.min.css}"/>
    <script th:src="@{/plugins/jquery-confirm/jquery-confirm.min.js}"></script>

    <style></style>
</head>
<body th:replace="layout::body(~{this::section})">
<section class="content-wrapper">
    <section class="content-header">
        <h1>
            角色
            <small>添加</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 商户管理平台</a></li>
            <li class="active">角色添加</li>
        </ol>
    </section>
    <section class="content">
        <div th:if="${respMsg != ''}" class="alert alert-danger alert-dismissible">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <h4><i class="icon fa fa-ban"></i> 操作提示</h4>
            <label th:text="${respMsg}"/>
        </div>
        <form class="form" th:action="@{/MpsRole/Save}" role="form" method="post">
            <div class="form-group">
                <label>角色名称：</label>
                <input type="text" id="name" name="name" class="form-control"/>
            </div>
            <div class="form-group">
                <label>角色备注：</label>
                <textarea id="descr" name="descr" class="form-control"></textarea>
            </div>
            <div class="form-group">
                <label>资料排序：</label>
                <input type="number" id="sort" name="sort" value="99999" class="form-control"/>
            </div>
            <div class="form-group">
                <label>资料状态：</label>
                <input type="number" id="status" name="status" value="0" class="form-control"/>
            </div>
            <div class="row">
                <div class="col-md-5"></div>
                <div class="col-md-1">
                    <input type="submit" class="btn btn-block btn-primary" value="保存"/>
                </div>
                <div class="col-md-1">
                    <a class="btn btn-block btn-primary" th:href="@{/MpsRole/goMpsRoleList}">返回</a>
                </div>
                <div class="col-md-5"></div>
            </div>
        </form>
    </section>
</section>
</body>
</html>